Fixed loosing assignments when updating a task.