fixed script permission error