Fixed two-tuple check bug.