Fixed automatic localization