fix bug: the client do not get tasks.