Fixed rendering on mac