Fix a bug for form_for