Debugging inversions, still need fix