Fixed some minor errors with duplicate pts