fix the bug of synachronization of task