fix curve copying