Fixed bug in complexity figure calculation.