Fixed bug in the print command