Fix typo in amount subtraction script