Fix field loop error