fix the queries result