Fix bug in stream pub constructor.