Solved a bug (null pointer exception when the localization is not
enabled)