Fixed issue with not deleting folders