Fix bug in print method (3)