Fix for data scan, data elements must be directly nested inside of main element
Updated minified version