Fixed bug in bbcode parser