corrected rqm bugs