Fixed bug in print out