fix main in component definition