Fix folder deletion