Safari compatability fixes.