fix so typeahead works better with lock