fixed a small bug related to closing wiki-tag