Fixed ambiguous operator precedence bug in getLocation()