Fix typo in preserveViewport handling