fix update nmap bug, which was not compatible between old and new version.