Fixed the print method