Corrected array out-of-bounds error
Bugfix: Reseeding should reset index