Fix viewport coordinates.