duplicate name error bug fix