undo bug no error code after clone fail