Fix classes map.