fix date interval