fix "open_console is not defined"