Fixed a mistake in the WinForms code