Moved initializations of scanners outside QR_RESET_CTX blocks