using loop index when iterating through worldstates

the reason for #22 is that when iterating through the bounded
worldstates to create the chart data, always he worldstate with index 0
is used instead of the worldstates with the current loop index. fixed #22