update version in MemoryStream