Fixes related to AJAX submission.