fix unlink file bug