Make response is not undefined