fix multiple terminating responses in buffer