Fix the fix: crash when deleting more than one function