fixed problem adding same point twice