Fix safari bugs.