Fixed issues with displaying not unique queries