Fix safari exception message