bugfix on file delete