fixed codec errors