fixed date equality bug