fix on load event for qr code.