fixing a quote only search edge case