Fixed nids issue.