fix case of Viewport, refs #16730, #16989 (1.7 branch)