fixed location query when switching from compare to search