changed access to openTask instead of getTaskInfo