fix console bugs