fixes issue with serialization of different entities