Fixed validatependingorder for QRcode