Fix bug when it has been switched to tag.