fixed when condition in first run file flag task