handle missing qids