off-by-one bug caused by 0 indexing in json from GLM fixed
Fix corresponding R unit