Fix segmentation fault in search_dialog.d