Fixed a bug, where to many lines where cleared when the console got to small.