Make sure the amount is properly exported. Closes #283