Fix subtracting from global "amount" (a nil value) when paying too much