Fixed some safari bugs.