fix the bug fix
some queries don't convert to array
this handles those