fixed a bug of stopAllTask