fixed problems with screen size in terminal