resloves the modalpop issue