Fix console mode