fix actionIndex()