fixed title rendering bug