Car shuts off when hot, air bubbles in fuel filter

I think is all comes back to the crappy gas we have to use. I use a mallory electric pump with a return line, no more problems like this.