Make sure nothing from any previous serialization is left in the streams