Fixed ObjectOutputStream reset bug.