fixing onObjectObserved to work with ObjectObserver
Fixing object removal with ObjectObserver