fixed scripts not running on medium layout