Fixed a problem of window size and widget title