fix local reading file