fixed bug in tourndemo on adv thread