fix leak of received amounts