diff --git a/modules/authcache_ajax/authcache_ajax.js b/modules/authcache_ajax/authcache_ajax.js
index 3df4cba..c871a83 100644
--- a/modules/authcache_ajax/authcache_ajax.js
+++ b/modules/authcache_ajax/authcache_ajax.js
@@ -46,7 +46,7 @@
           $.each(params, function(url) {
             var param = this;
             var $targets = $('.authcache-ajax-frag', context).filter(function () {
-              return $(this).data('p13n-frag') === frag && (!param || $(this).data('p13n-param') === param);
+              return $(this).attr('data-p13n-frag') === frag && (!param || $(this).attr('data-p13n-param') === param);
             });
             if ($targets.length) {
               authcacheGet(url, function(markup) {
