Fixing correction fields type on db