some fixes in tag model