Fix classification visibility query