gif index fix