fixed popViewport bug