Fixed bug detecting data-res attributes