quick fix to get adv queries working