fix error with tolocalized not being used properly