fix single query display bug