Correct copy constructor that causes copies to SEGV.