fix transform_response