fixing flows