fix error line clear issue