Fixed lookup for packages.

Fixed lookup for packages.