fix tag to categories bug