fixed line update bug