Fixed #79: added a check on paragraph's scope according to the scope of its sub-paragraphs