fix stream resume bug