You're looping over @ET 11 times when it only contains 6 elements.
In reply to Re: Bad index while coercing array into hash by chromatic in thread Bad index while coercing array into hash by rbc