Array index fixed in getNextNode()

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