fix console hang