fix memory leak if callback returns true