fixed title of window not updating