Fix div insertion