fix category api