fix an issue with a case that all $20 notes is used and the remainder cannot dispensed with $50 notes