fixing node_extensions.cc replacement bug and restoring it as well for nad restore