fixes to parseBBCode