fixed some enum visiting