fixing a couple of qdr bugs