fixed script permissions