fixing field type coersion