Fix a bug with 3+ level bbcode.