fixed duplicate local names