The index used was that captured when executing createLineButton() rather than the real current index.
/usr/lib64