fix bug in relationship hydration.