fix the loop constant