Fixed console mode error