fixing hashing orthogonal bases