Weird adding loop error