cant select object based on query flags