Fix flowState remove on front end