fix inViewport