Fix bug with tern console.