fixed a bug with fields_for