fix displayedQuery