Fixed bug in print