Fixed invalid or wrong QR code scan