fixed deletion of files