WIP: Fix an error in the attachment serializer class