Fix a minor bug in the algorithm
Fix a minor bug in the algorithm

breznak/nupic,runt18/nupic,rcrowder/nupic,EricSB/nupic,eranchetz/nupic,alfonsokim/nupic,blueburningcoder/nupic,neuroidss/nupic,arhik/nupic,jcasner/nupic,rcrowder/nupic,wanghaven/nupic,mcanthony/nupic,vamsirajendra/nupic,numenta-ci/nupic,allanino/nupic,subutai/nupic,ywcui1990/nupic,runt18/nupic,chen0031/nupic,pap/nupic,virneo/nupic,akhilaananthram/nupic,loretoparisi/nupic,chen0031/nupic,BeiLuoShiMen/nupic,eranchetz/nupic,jcasner/nupic,numenta-ci/nupic,pulinagrawal/nupic,chanceraine/nupic,glorizen/nupic,ywcui1990/nupic,loretoparisi/nupic,numenta/nupic,breznak/nupic,cogmission/nupic,pap/nupic,marionleborgne/nupic,wanghaven/nupic,cngo-github/nupic,blueburningcoder/nupic,alfonsokim/nupic,brev/nupic,badlogicmanpreet/nupic,blueburningcoder/nupic,scottpurdy/nupic,marionleborgne/nupic,arhik/nupic,cngo-github/nupic,BoltzmannBrain/nupic,lscheinkman/nupic,metaml/nupic,allanino/nupic,runt18/nupic,subutai/nupic,rcrowder/nupic,markneville/nupic,elkingtonmcb/nupic,passiweinberger/nupic,cngo-github/nupic,cogmission/nupic,metaml/nupic,ben-hopps/nupic,neuroidss/nupic,subutai/nupic,glorizen/nupic,GeraldLoeffler/nupic,lscheinkman/nupic,go-bears/nupic,markneville/nupic,EricSB/nupic,vamsirajendra/nupic,go-bears/nupic,numenta/nupic,passiweinberger/nupic,sambitgaan/nupic,virneo/nupic,GeraldLoeffler/nupic,SaganBolliger/nupic,metaml/nupic,darshanthaker/nupic,vitaly-krugl/nupic,numenta/nupic,GeraldLoeffler/nupic,akhilaananthram/nupic,BeiLuoShiMen/nupic,rhyolight/nupic,fergalbyrne/nupic,chen0031/nupic,fergalbyrne/nupic,elkingtonmcb/nupic,mcanthony/nupic,SaganBolliger/nupic,ywcui1990/nupic,badlogicmanpreet/nupic,virneo/nupic,ben-hopps/nupic,chanceraine/nupic,rhyolight/nupic,vitaly-krugl/nupic,BoltzmannBrain/nupic,chanceraine/nupic,rayNymous/nupic,rhyolight/nupic,pap/nupic,darshanthaker/nupic,wanghaven/nupic,fergalbyrne/nupic,eranchetz/nupic,numenta-ci/nupic,pulinagrawal/nupic,go-bears/nupic,sambitgaan/nupic,vamsirajendra/nupic,brev/nupic,allanino/nupic,cogmission/nupic,rayNymous/nupic,rayNymous/nupic,loretoparisi/nupic,mcanthony/nupic,marionleborgne/nupic,BeiLuoShiMen/nupic,BoltzmannBrain/nupic,darshanthaker/nupic,breznak/nupic,scottpurdy/nupic,passiweinberger/nupic,jcasner/nupic,brev/nupic,markneville/nupic,lscheinkman/nupic,ben-hopps/nupic,alfonsokim/nupic,neuroidss/nupic,badlogicmanpreet/nupic,pulinagrawal/nupic,akhilaananthram/nupic,vitaly-krugl/nupic,SaganBolliger/nupic,sambitgaan/nupic,scottpurdy/nupic,glorizen/nupic,elkingtonmcb/nupic,EricSB/nupic,arhik/nupic