fixed ad flickers to fullscreen and back after hiding a modal.