fixed bug in removing blank <p> tags