fix bug with codedstream