Fix ajax for GQR and RQG