fix response->end