Fix 2D viewing mode bug.