Fix handler errors in response formatting.