Fix bug with search in Safari