Fix for shared object reference tracking.