Safari compatibilty fixes.