Set correct viewport