remove taskIndex