Fix index error when length is more than 1024
Fix index error when length is more than 1024

jonathantompson/cunn,davidBelanger/cunn,rotmanmi/cunn,andreaskoepf/cunn,Aysegul/cunn,ominux/cunn,clementfarabet/cunn,jhjin/cunn,colesbury/cunn,davidBelanger/cunn,Saulzar/cunn,jhjin/cunn,szagoruyko/cunn,rotmanmi/cunn,danielsig727/cunn,szagoruyko/cunn,apaszke/cunn,andreaskoepf/cunn,apaszke/cunn,apaszke/cunn,colesbury/cunn,colesbury/cunn,albanD/cunn,lukasc-ch/cunn,lukasc-ch/cunn,jonathantompson/cunn,clementfarabet/cunn