Fixed bug in duplication - now duplicated correctly even if curve points have been moved.