Update ending line