Fixed bug in FrictionContact.