Fix QR code href
Fix undefined object check