Fix deserializing twice the same class