utils: fix cached enum fields not working correctly (not initialized)