fix tags and categories bug