Fixed QR Bug