fix missing code in nvmap