Simple array index error fixed. Now an action can follow an other action.