fix response processing