Fixed printing errors