Fixed another delete-bug caused by debug.writeline