fix last line refresh