Fix viewport issues.