fixed index script