fixed annoying duplicate task assignment bug