Fixed rendering for osx