fixed a bug in fix_paragraph, and added a fix for paragraphs in an inline element in a non-p block element that does not always need paragraphs