fix delete flow bug