fix improperly closed divs