Fix some bugs (window title, find and replace dialog)