Fixed for better handling of models with 'accept_nested_attributes_for'