Fixed some console bugs.