fixed bug with null title_bar