Fixed crashed with console.