@bluesnam
it could be the case that one of the clicks made the uielements invalid.
Check if for the first item the aaname is retrieved by doing it like following:
set breakpoint on Get Attribute and debug
when it stops the go to watch box and type in following expression: item.
Get("aaname").toString