fix insertion bug (num_points was defined as int64_t vs. the supported int32_t