fix date fields