fixed bug with data attributes not working for first level options such as loop