Fixed regulator count bug.