Fixed an issue with the next day retrieval in Task.