Fixed the typo in truss2d that caused test errors.