Bug fix for amount restriction.