getCurrentItem() not giving the correct item from the repeater

It won’t keep the name of my button when I past in the code. But my button name is named in actual code.