Fixed listing tasks error.