Fix reversed race/class checks