fix console not working in non-forked mode