Fix flow script