Assure worker index always within 0...@options[:workers]
Merge pull request #446 from sudara/master

Assure worker index is always within 0...@options[:workers]