fix a bug where currency field would not get properly reset