          */
 		public function onJsReady(): void {
 			jsReady = true;
-			if ( videoStarted ) {
+			if ( adStarted ) {
 				startImpressionTimer();
 			}
 			raiseReady();

					_intervalTimer.removeEventListener(TimerEvent.TIMER, onIntervalCheck);
					_intervalTimer = null;
					break;
				case VPAIDEvent.AdVideoStart:
					videoStarted = true;
					if ( jsReady ) {
						startImpressionTimer();
					}

			return jsReady;
		}
		/**
         * When the VPAID AdImpression event is received, it triggers this function
         * to start the interval timer which does viewability checks every 200ms (POLL_INTERVAL)
         */
        public function startImpressionTimer(): void {
