Fixed misassignment of task