Element.Parameters returns its information as a Dictionary, not a list, so the order of parameters (and therefore the index number) will never be consistent, even for the same category.
(I found that out the hard way- see the linked thread for way more details.)