Fixed the viewport moving issue