Fix calendar failed to query past incomplete tasks