Fix variable scoping bug that causes us to always be mining a random word.