Fix bug in object hydration.