Fixed a bug with composite resistances.