Car shuts off when hot, air bubbles in fuel filter

Bubbles are normal in the fuel. If you have a see through filter, you have the wrong one anyway.