fixed bug with category modification