Small fix to points JSON generation