fix date type field