fix response end call