fixes issue #227 - moved code out of the goroutine in RenderIndexes to get rid of race condition