bugfix: fix console app support.