fix index_script which I broke just now