Fix date comparision.