Fixed an inconsistency in localization