fix console application