fix thunk leak