fixed stream-publish bug