fix bug related QR