Fixed printing bug