Resolve some issues in safari due to missing closing tags