fix bug in clean screen and puts