Bugfix for badge searches