Fix AJAX saving.