How to stop hot air from engine compartment?

There is a seal at the back edge of the hood. Maybe its letting hot air in somehow