Resolved an issue serializing relations