fix date error handling