fix local filename bug