fixed bug where spiedfn is not calling using the right scope
release