bug migration html2bb and some small issues in code