fix(main) fix scanPDF417 function def