buggy queries