fixed mode check in wrapper
fixed mode check in wrapper

pingyen/pako,viljoviitanen/pako,viljoviitanen/pako,blackmamba85/pako,nodeca/pako,dduponchel/pako,pingyen/pako,mcanthony/pako,blackmamba85/pako,mcanthony/pako