fix last line issue