fixed a bug where empty paragraphs were being treated as real paragraphs