fix NPE in search box