fix some bbcode issues