Fixed issue with filtering using end dates.