Fix the issue when saving form data.