Fixed printing on terminal