fix bug with multiple-sequence nodes