Small fix to potential parameter calculation