fix bug when using keyboard across two different searches