Fixed the task states