fixed update amounts bug.