fix #2 (thisind not defined)