Control error Main