Fix for issue #44 Nested objects are not updated