Fixed error in tracking which end was being adjusted