search: improper reset fix

Signed-off-by: Kamil Neczaj <kamil.neczaj@cern.ch>