fixed ref to local object