Fixed an amount parsing error in expressions

Fixes #379