fixed the issue that blows up when you add a new line to the page