Fix Contraction

Fixed a corner case bug.