fix category n+1