Fixed nid variable name