Fixes the  searching by category. Resolves #488.