Fix namespace for nested objects.