Fix windows and add viewports.