Fixes several issues with editing paragraphs.