fix: change the use of destroy internally to match the correct signature