Updated missing flag in queryhandler