Fixed a bug allowing to pay a negative amount and receiving money instead.