fixed the i=i+1 bug in fusionBCD