add bugfix for categories