[taskmgr] fixed #302