Fix issue of Scan QR code button sometimes not showing when it should be available