Fix casesensitiv bug in localization