fix date ranges