fix serializer and typo in attachment