updated fix_title to handle inner tags