fix broken console.main