Fix setting window title.