Fix ESR url and response problem