fixed loca script