fixed local file bug