Unset unnecessary 'index' values