Fixes for Console, 1) wrong lambda capture, 2) Crashes when click 'next' in ConsoleTest.