changed viewport.windowWidth and viewport.windowCenter to be viewport.voi.windowWidth and viewport.voi.windowCenter respectively