index causing issues