fixing script about global property