fixed a bug which occurred when no search resutls were found