fixed nesting same name bug