attempt to fix crash in element search ui, although I can't repdoduce it on windows