Bug fix when nid is not available but vid is