Something must be causing a lack of air flow through the heater core.
the heater core CANT be blocked with foam, because the foam is AFTER the core, thats why you see it blowing out the vents..