Fixes for Safari.