Fixed an issue when not using AJAX forms.