Fix crashers in qresync code