Correcting localization