I am not at all sure that flame coming out of the barrel means that the powder is burning outside the barrel. It could be many things other than powder.
Could you give some suggestions on what it might be, other than powder?
I have a hard time imagining what might be burning other than powder.