bugfix the fastSum alg