fixed error creating points