running flag fix