Fixed Null Ref Exception in MainForm OnActivated