correctly handle number enums