fix category scripts