Fix safari weirdness