fixed bug where last line was cut out; thanks to fuzetsu and ISN-Zurich