Corrected getLocation call