Fix type specification of RichParagraph.