Fixing chain lookup.