read_ndx: fix bug in changing number of digits
Merge branch 'hotfix' into develop