fix update tag and category
fix update functions