Fix console application