Fixed a problem where removing lines would stop updating the fn