Fixed Bug that the folder's contents don't get cleared