Fixes a bug in the display of the window title