fixing not using module precedence in named thing lookup