Bugfix in IO indexing