Fixed adding categories.