fixing script root issue