Bug fix! 2d ortho function fixed.