fixed.
removed _viewportWidth and _Height and changed to canvas.width and canvas.height.