fix a crash for invalid race enums