Fixing xpath for apikey replacement