Corrected a bug where nothing was printed out.