Fixed bug where last line doesn't register.