flow script fixed