fixed a typo in mainControl