fix for reruning defined flow