fixed same name error.

added localization to errors