fix gotoTag bug