Fix rewinding stream object.