added missing reservationId variable to saveTerm method