fixed a bug with reloading after searching