remove premature closing p tag