Fix small "last line" bug