Fix race class bug.