Fixed a minor bug with the sumProduct parameter passing.