fix addPoint feature