fix category end