Fixed bug with recursive delete