Fix to delete file