fix bug in multipoint example