fixed script permission issue