fix adding categories on update