fixing tree delete