Fix bug

oInv is the inversion of corner orientations, and is not compatible with
edges