fix delete file bug