fix bug --ObjectOutputStream reads only the first instance