fix local reference