Corectly handled clearing search box