fix category DB error