Fix autofp flow queue handler optimization