Fixed a bug with nested objects.