Fix next_actions for subflow