Fixed a bug where Form uses Control as its base type