Fixed error when checking the amount doing a refund