Fixed call to getLocation