fixes issue #227 - moved code out of the goroutine in RenderIndexes to g...

...et rid of race condition

Seems like the parallelism was causing the issue. This should fix it, at least from my testing.