Fixed the metadata being trashed at start of stream.