Fixed a bug in the print statements