set the totalAmount as it was