fix for adding categories