Fixed a bug with decimal fields.