fix reset and restore focus for live search