fixes incorrect results when a user searches multiple times #122