Fixed the orthogonalization to work with inner rings.