Bug fix:Curves were not cloned properly