Fixes indices.