[BUGFIX] Prevent recursive AJAX calls