Bugfix: Incorrect Window Layout

Fixed bug that caused an incorrect window layout when the
terminal has been resized