fix render window for mac