fixed error deleting folders