Fix crash in dexsearch command