line end fix