I realized the problem I was serializing the object when adding it to the field. When I just added the object to the field and then serialized it fixed it. –