     
     public func adDidCloseFullscreen(_ ad: TFACustomAdView) {
         //update the slot in case there was a rotation or a layout change to be sure that the ad has the right layout
-        self.webViewHelper.updateSlot(adRatio: ad.adRatio)
+        self.webViewHelper.updateSlot(adRatio: self.adRatio)
     }
 }

    }
    
    @objc func rotationDetected() {
        if let adView = self.adView {
            //update the slot when the rotation occurs
            self.webViewHelper.updateSlot(adRatio: adView.creativeRatio)
        }
    }
    
    // MARK: WebViewHelperDelegate

    // MARK: TeadsAdDelegate
    
    public func didReceiveAd(_ ad: TFACustomAdView, adRatio: CGFloat) {
        self.adRatio = adRatio
        //update slot with the right ratio
        self.webViewHelper.updateSlot(adRatio: self.adRatio)
        //open the slot
        self.webViewHelper.openSlot()
    }
