bugfix deleting files exception