Fixing qreg