fixed error on point creation