fixing issue where QR goes to the wrong page