fix changeFlow bug