Fixed bug in localisation