Better fix for search input blur bug