inconsistent twists problem debug