fixes html rendering on osx