Fixed errors with search location.