Fixed an issue with indices.