Bugfix for category filtering