Fixes #42 : added attrIndex to history