fixed flow reverse flag incorrectly being set