Fix problems in FrictionLimits.cpp