fix for empty elements that are not self closed