fixed relationship serialization with many relationships