AVALANCHE: Some index fixes in Nim.