fix category delete and softdelete method