bug fixed with null id of name structure