fix compare dates