So, if you replaced the fuel filter and it still does the same thing, then it of course does it with both of then - so it may not be the fuel filter.
"If" not, it could be Vapor Lock?
Is the engine caked with dirt & it's running way too hot?
Or, what gas do you use and how old? Do you have any Seafoam to run in the gas?