bug fix at line end