fix eval environment of range expression of loop expression