Fix bug can't delete local file