Fixed bug with category adding