Fix line end bug?