Viewport bugfix