fixed two issues on parent folder delete