fix for NativeEnum new implementation