Fixes a bug with metasearch and sunspot