Fixed the issues for displaying QRCode.