Fixed the behavior of overscaling viewports.