Fixed incorrect caching of added object.