Fix paragraph count and some styles.