Fix bug with last line in buffer not being evaluated