Fixed printing problem