fix bug: inner proto error check[encoder.js line:66]