Fixed sequence of a and p tags.

from <a><p></a></p> to <p><a></a></p>