fixed issue with relations not being present. This causes an error in the marshalling of data.