Update nvm code