Fixed script permission problem