fix console mode