Fixed bug in line buffer implementation.