Fix: a bug from 7cb0cd1576190a8b4b1b4be73f487a224c84616c which passed a wrong cache key (`key` instead of `chainKey`).