Fixed up bad taskIndex position