- Fixed double delref on leaving scope