Fixed overflow with multiple-digit index