fix category length