fix part of calling decode method