Fixes response handling.