fix file bug