Fixed deep cloning in memento plugin