Minor bug fixes in headnodevis