bugfix on category output