bugfix for category controller