fixed localization_checker and a bug with it