fixed local lookup bug.