fix a bug of calculating mq in hRRT