Fix console print issue