fix category tree