Fix folder deleting.