Fixed (known) bug in counting one of the parameters.