Sometimes it doesnt light, but you further state the flame comes out of the exhaust side? Makes no sense, sorry😕. If it is lighting then the igniter is working. Poor air flow could be one cause of back burn. Check for obatructions in the burner tube. Also if this model has an adjustable air shuttle, check to be sure it is adjusted properly.