Usually a backfire is from going lean, ether the float level is low, or the accelerator pump isn't working properly or mis-adjuisted, if it happens when the throttle is opened quickly. Since it is idling smooth, I would guess it doesn't have a vacuum leak
My $.02