fix bug when clone a STACK_OF(OBJ) object