revert changes in decoder.js