bug fix in using a paragraph instead of a span