fix double render at page load in Safari