Fixed issue with excluding dates.