Categories bugfix