safari event bugfix