Fix fields type.