fixed script and index changes.