Fix assigning a task to users. Closes #1.