Fix amount being wiped bug.