fix category ID rollback