Bug fix for 'Use Current Location'

Fixed an issue with the ‘Use Current Location’ button causing a crash.