fix to use data attribute to be called twice or more