fix date edit