Fixed viewport bug.