Fix nid function naming error