fix fmainwindow