fix local ref.