script's permission fix