Fix broken DOM