Fixes a bug with multiple Forms on WinForms.