I looks like I fixed it with the code below
<script type="text/javascript">
(function($) {
$(document).ajaxComplete(function( event, xhr, settings ) {
for (var i = 0; i < accordionShortcodesSettings.length; i += 1) {
settings = accordionShortcodesSettings[i];
$('#' + settings.id).accordionShortcodes(settings);
}
});
})(jQuery);
</script>