fix setting global defaults with data-attributes