fix stream convert bug