fixed compare date