Fixed two bugs in tag shell.