fixed a bug that was introduced from the latest x-tag-core