Fix broken build due to bad are enums checking