Fix a problem with the task allocation.