closure codec bugfix