fix method refineCode() issue;

fix method refineCode() issue;