fix patch for Serialization to make patching work again