updated fix_title to handle null title.text