Better fix for idiotic viewport bug.