fix missing positioning of the viewport