Fixing bug in decoder base class.