Fix memory leak on unstuck