Fixed bug to allow assigning of tasks