more index script fixing