Fix viewport setting.