Fixed issue where selecting all tasks with due dates would fail.