Fix small bugs in functions for localization