fixing stupid bug in Sample_clone