Fix deprecation for serialized_attributes