method to find current location bug fixed