Fix: Malfunction of if the console is unavailable. fixed #115