Fix viewport syntax errors.