Fix for accepts_nested_attributes.