Restored the viewport params.