Fixed registration of enums.