Bugfix: index needs to be parsed as int.