fix for clearing search with X