Fix NERVE_INSTANCE handling