Fixed lookup order.

Fixed lookup order.