Corrected getLocation call to LocationInView