removed invalid delete, which caused app crash on quit