Fixed issue with earlier date comparisons