fixed memory allocation error in range_buffer #70

fixes #70
Merge branch 'bugs/70'