Fixed issue with search dialog