Fix some frmMain element