fix field types