fixed some small mistakes in the parsing of bbcode