Bugfix off-by-one error
Bugfix off-by-one error

aehrc/ngsane,clark-lab/ngsane,clark-lab/ngsane,BauerLab/ngsane,BauerLab/ngsane,BauerLab/ngsane,BauerLab/ngsane,aehrc/ngsane,clark-lab/ngsane,aehrc/ngsane,aehrc/ngsane,clark-lab/ngsane