Fixing the destroy() function - thanks Roland!