resolve issue with searching twice or more since loading (fixes #9)