Fix bug in Contraction
Fix Contraction