bugfix on search loc