bug fix for checking the query result