fixed codec error