small fix to the query else we got an array as result