fix category controller bug