Fixed readObject/writeObject cloning issue