Fix data attribute method