AVALANCHE: Fix out-of-bounds indexing issue.