Fixed bug in console print.