Bugfixing deleting dates from the past