location api fix