Fix bug that show the public query tab with inside privare queries